package com.day09;

public class Test {
    public static void main(String[] args){
        //声明变量
        int speed,salary;
        float time,basicSalary,prize,distance;
        char alphabet;

        //给变量赋值
        alphabet='a';
        basicSalary=3094.5F;//基本工资
        prize=2344.55F;//奖金
        speed=30;
        time=3.4F;

        //通过表达式给变量赋值
        salary=(int) (basicSalary+prize);
        distance=speed*time;//距离=速度*时间

        System.out.println("字母alphabet= " +alphabet);
        System.out.println("字母basicSalary= "+basicSalary);
        System.out.println("字母prize= "+prize);
        System.out.println("字母speed= "+speed);
        System.out.println("字母time= "+time);
        System.out.println("字母salary= "+salary);
        System.out.println("字母distance= "+distance);
    }
}
